/**
 * 提煤单管理 - api
 * @author xiaoxujs
 */

import { basicIp, newHttpService } from "../../../api/http";
import { IBaseEntryVoucherAddParams, IBaseEntryVoucherEntryParams, IBaseEntryVoucherEntryRecordParams, IBaseEntryVoucherExitParams, IBaseEntryVoucherPageParams } from "../../../type/Jinchu";
// 提煤单管理 - 列表数据
// export const postPcdZyVehicleInfoSelect = (data: IPcdZyVehicleInfoSelectParams) => {
//     const url = basicIp + '/pcd/zy-vehicle-info/select';
//     return newHttpService.postData(url, data)
// }

// 入矿记录查询
export const postBaseEntryVoucherEntryRecord = (data: IBaseEntryVoucherEntryRecordParams) => {
    const url = basicIp + '/base/entryVoucher/entryRecord';
    return newHttpService.postData(url, data)
}
//  脱机录入 - 入矿
export const postBaseEntryVoucherEntry = (data: IBaseEntryVoucherEntryParams) => {
    const url = basicIp + '/base/entryVoucher/entry';
    return newHttpService.postData(url, data)
}
// 入矿凭证查询
export const postBaseEntryVoucherPage = (data: IBaseEntryVoucherPageParams ) => {
    const url = basicIp + '/base/entryVoucher/page';
    return newHttpService.postData(url, data)
}
// 手动登记入矿
export const postBaseEntryVoucherAdd = (data: IBaseEntryVoucherAddParams) => {
    const url = basicIp + '/base/entryVoucher/add';
    return newHttpService.postData(url, data)
}
// 入矿凭证模板下载
export const getBaseEntryVoucherDownloadTemplateUrl = basicIp + '/base/entryVoucher/downloadTemplate';
//  入矿记录导出
export const postBaseEntryVoucherEntryExport = basicIp + '/base/entryVoucher/entryExport';
//  出矿记录导出
export const postBaseEntryVoucherExitExport = basicIp + '/base/entryVoucher/exitExport';


//  出矿记录查询
export const postBaseEntryVoucherExitRecord = (data: IBaseEntryVoucherEntryRecordParams) => {
    const url = basicIp + '/base/entryVoucher/exitRecord';
    return newHttpService.postData(url, data)
}
//  脱机录入 - 出矿
export const postBaseEntryVoucherExit = (data: IBaseEntryVoucherExitParams) => {
    const url = basicIp + '/base/entryVoucher/exit';
    return newHttpService.postData(url, data)
}